/**
 * 
 */
package de.idgard.json.transport;


/**
 * 
 * @author <a href="mailto:vesko.georgiev@uniscon.com">Vesko Georgiev</a>
 */
public class Receiver<ResponseType> {

	/**
	 * Got response with HTTP 200 status
	 * @param respBody
	 */
	public void onSuccess(ResponseType response) {
		// 
	}

	/**
	 * Server's response is received, but got status != HTTP 200 
	 * @param respBody
	 */
	public void onFailure(int code, String response) {
		//
	}

	/**
	 * Exception occurred while request. Didn't even get to the server.
	 * @param e
	 */
	public void onException(Exception e) {
		//
	}
}
